<div class="innerdiv">

  <h2 class="head">Edit News</h2>
  <div class="innercontent">
          <%= render 'form' %>
          
          
  
  </div>
  
</div>

<div class="innerdiv">
			<h2 class="head">Related Images</h2>

			
			<div class="innercontent">
				<!-- modal content -->

				<div id="confirm" class="modal">
					<h2 class="head-alt">Are you sure ?</h2>
					<div class="message">
					</div>
					<div class="buttons">
						<div class="yes ">
							<a class="button red">YES</a></div>
						<div class="no simplemodal-close">

							<a class="button gray">NO</a></div>
					</div>
				</div>
				<div id="image-modal" class="modal">
					<div id="image-wrap">
						<img id="modal-image" src="" alt="modal picture" /></div>
				</div>
				
				<div id="related-images">
					<%= render :template => "images/related_images" %>
					
					<!--
					<% @images.each do |item| %>
					  <li id="image1">
					  <img alt="image" src="<%= url_for({:controller => 'images', :action => 'thumbnail', :id => item.id, :size => "small"}) %>" />
					  <ul>
						  <li>
						  <a class="" href="#news_body" onclick="insertImage('<%= url_for({:controller => 'images', :action => 'thumbnail', :id => item.id, :size => 'medium'}) %>');">
						  Insert</a>
						  </li>
  
					  </ul>
					  </li>
					<% end %>
					-->
					
					
					<li class="clear display-none"></li>
				</div>
				
				<br class="clear" />
			</div>

		</div>

<div class="innerdiv clear">

			<div class="innercontent">
			  
                          <a href="#" id="submit" onclick="$('.edit_news').submit();" class='button blue big'>Save changes</a>
                          <a href="<%= url_for({:action => "index"}); %>" class="button gray big">Back to List</a>
                          
			</div>
</div>
